<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>现代风格登录页面</title>
    <style>
        /* CSS样式分离在此处 */
        .login-container {
            background: rgba(255, 255, 255, 0.95);
            width: 380px;
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            position: absolute;
            right: 10%;
            top: 50%;
            transform: translateY(-50%);
        }

        .input-group {
            margin: 25px 0;
            position: relative;
        }

        input {
            width: 100%;
            padding: 12px 8px;
            border: none;
            border-bottom: 2px solid #ddd;
            font-size: 16px;
            background: transparent;
            transition: 0.3s ease;
        }

        button {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #2ecc71, #1abc9c);
            color: white;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            transition: 0.3s;
        }
    </style>
</head>
<body style="
    margin: 0;
    height: 100vh;
    background: url('https://img1.baidu.com/it/u=848742253,1576507071&fm=253&fmt=auto&app=138&f=JPEG') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: flex-end;">

<div class="login-container">
    <h2 style="text-align: center; color: #2c3e50; margin-bottom: 30px;">用户登录</h2>
    <form th:action="@{/login}" method="post">
        <div class="input-group">
            <input type="text" name="username" placeholder="用户名" required style="border-bottom: 2px solid #bdc3c7;">
        </div>
        <div class="input-group">
            <input type="password" name="password" placeholder="密码" required
                   style="border-bottom: 2px solid #bdc3c7;">
        </div>
        <button type="submit" style="margin-top: 20px; box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);">
            立即登录
        </button>
    </form>
</div>
</body>
</html>